package com.grass.cropTradingCenter.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 
 * @TableName user_star
 */
@TableName(value ="user_star")
@Data
public class UserStar implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联id
     */
    @TableField(value = "other_id")
    private Integer otherId;

    /**
     * 类型 1--商品收藏  2--店铺收藏
     */
    @TableField(value = "other_type")
    private Integer otherType;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}